package com.huawei.spider.cnki.config;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: liminghui
 * @Date: 2020/5/17 16:07
 * @Version:
 * @Description:
 */
public class GetConfig {
    //封装请求头
    public static Map<String, String> getHeaders() {
        HashMap<String, String> headers = new HashMap<>();
        headers.put("User-Agent", "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Mobile Safari/537.36");
        headers.put("Host", "kns.cnki.net");
        headers.put("Connection", "keep-alive");
        headers.put("Cache-Control", "max-age=0");
        return headers;
    }
}
